﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

namespace Dreamz
{
    class Rum5
    {
        static public void Apply()
        {
           //Adds methods invoked through events, like taking napalm.
            GameEngine.S.World[3, 2].Items["napalm"].OnTake += new EventHandler(TakeNapalm);
        }

        static public void TakeNapalm()
        {
           //This gives the sad news that your character have died, and resets the game.
            UI.Console.Clear();
            UI.Console.Write("[GAME OVER]", ConsoleColor.Red);
            UI.Console.WriteLine(@"You idiot! You just set yourself on fire!");
            UI.Draw();
            Console.ReadKey();
            Console.Clear();
            GameEngine.S.Menu();
        }
    }
}
